package com.tjetc.service.impl;

import com.tjetc.dao.CategoryDao;
import com.tjetc.dao.impl.CategoryDaoImpl;
import com.tjetc.domain.Category;
import com.tjetc.service.CategoryService;

import java.sql.SQLException;
import java.util.List;

public class CategoryServiceImpl implements CategoryService {
    private CategoryDao categoryDao=new CategoryDaoImpl();
    @Override
    public List<Category> list() {
        try {
            return categoryDao.list();
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return null;
    }
}
